package com.example.qihuibao.dao

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(tableName = "user_info", indices = [Index(value = arrayOf("phone"), unique = true)])
data class UserInfo (
    @PrimaryKey(autoGenerate = true) val id: Long=0L,
    @ColumnInfo(name = "name") val name:String="",
    @ColumnInfo(name = "phone") val phone:String="",
)